#pragma once
//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#define PROGRAM_NAME_MAX_LEN	15

#pragma pack(push) 
#pragma pack(1)
class RcSysPktPatch
{
public:
	U16	m_u16PktLen;		
	U16	m_u16PktType;
	U32	m_u32MinVersion; 
	U32	m_u32NewVersion; 
	U32	m_u32FileLen; 
	unsigned char	m_au8ProgramName[ PROGRAM_NAME_MAX_LEN + 1 ];
	unsigned char	m_au8FileName[ MAX_PATH ];
	
	//=== constructor/destructor ===//
	RcSysPktPatch(){m_u16PktType = RC_SYS_PKT_TYPE_PATCH;}

	void SetFileName( std::string &csFileName );
	void GetFileName( std::string &csRetFileName );
};

#pragma pack(pop)
